package Objects
{
	import Native.GameFormat;
	import Native.NativeField;

	public class GameTextField extends GameObject
	{
		private var m_format:GameFormat;
		public function GameTextField()
		{
			super(NativeField);
			m_format=new GameFormat();
		}
		public function get textField():NativeField
		{
			return obj as NativeField;
		}
		public function initFormat(color:uint,size:int=0,bold:Boolean=false):void
		{
			m_format.color=color;
			if(size!=0)
			{
				m_format.size=size;
			}
			m_format.bold=bold;
		}
		public function get format():GameFormat
		{
			return m_format;
		}
	}
}